#endcoding:utf-8
class Offer < ActiveRecord::Base
  validates_presence_of :demand_id,:price,:description
  validates_numericality_of :price,:message => "不是一个数字"
  belongs_to :user
  belongs_to :demand
end
